package com.zixun.repository.information;

import com.zixun.model.information.InformationImage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;


public interface InformationImageRepository extends JpaRepository<InformationImage,Long> {

    @Query("select image from InformationImage image where image.informationId = :id")
    List<InformationImage> findByInfoId(@Param("id")Integer id);

}
